﻿using System;

namespace SchoolMall.Domain
{
    /// <summary>
    /// 实体基类
    /// </summary>
    public abstract class BaseEntity
    {
        #region 初始化类
        /// <summary>
        /// 主键Id
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public BaseEntity()
        {
            this.Id = Guid.NewGuid();
        } 
        #endregion
    }
}
